<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="./favicon.ico" />
    <link
      href="https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap"
      rel="stylesheet"
    />

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>学法减分题库管理系统</title>
    <script>
      console.log("初始化应用...");
      // 自动添加哈希
      if (!window.location.hash) window.location.hash = "#/";

      // 记录加载错误
      window.addEventListener(
        "error",
        function (e) {
          if (
            e.target &&
            (e.target.tagName === "SCRIPT" || e.target.tagName === "LINK")
          ) {
            console.error("资源加载错误:", e.target.src || e.target.href);
          }
        },
        true
      );

      // 设置最大超时，确保应用最终能够运行
      setTimeout(function () {
        var app = document.getElementById("app");
        if (!app || !app.hasChildNodes()) {
          console.warn("应用加载超时，尝试恢复...");
          window.location.reload();
        }
      }, 10000);
    </script>
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="./src/main.js"></script>
    <noscript>
      <strong
        >很抱歉，如果不启用JavaScript，学法减分题库系统将无法正常工作。请启用它继续。</strong
      >
    </noscript>
  </body>
</html>
